import re

pattern = r"abc"  # 查找 'abc'
text = "123abc456"

search = re.search(pattern, text)
if search:
    print(f"匹配到：{search.group()}")  # 输出：匹配到：abc
else:
    print("没有匹配到")
